/*
 * Copyright (c) csii.com.cn 2016 zhaojin
 */

package com.csii.ssm.servlet;

import com.csii.ssm.context.ModeControllerUtil;
import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

/**
 * Created by Myang on 2016/4/30.
 */
public class MyDispatcherServlet extends DispatcherServlet {

    @Override
    public void init(ServletConfig config) throws ServletException {
        String configLocation= ModeControllerUtil.getServletConfigLocation();
        super.setContextConfigLocation(configLocation);//设置FrameworkServlet中的spring mvc配置文件路径
        super.init(config);
    }
}
